<?php
include_once("dataprovider.php");

class Slide
{
	var $mahinh;
	var $url;
	
	
	public static function LayDanhSachSlide()
	{
		$sql = "
				select *
				from slide
		";
		$result = DataProvider::ExecuteQuery($sql);
		$dsSlide[] = new Slide;
		$i = 0;
		while($row = mysql_fetch_array($result))
		{
			$slide = new Slide;
			$slide->mahinh = $row["mahinh"];
			$slide->url = $row["url"];
			$dsSlide[$i++] = $slide;
		}
		return $dsSlide;
	}
	
}

?>